package com.key.w8.http1.entity;

import io.netty.handler.codec.http.*;

import java.nio.ByteBuffer;

/**
 * @Author: k8
 * @CreateTime: 2025-02-18
 * @Version: 1.0
 */
public class HttpResponse extends HttpObject{

    private HttpResponseStatus status;

    public HttpResponse(HttpHeaders headers, HttpVersion version, HttpResponseStatus status) {
        super(headers,version);
        this.status = status;
    }
    public HttpResponse(HttpVersion version, HttpResponseStatus status) {
        super(new DefaultHttpHeaders(true),version);
        this.status = status;
    }

    public HttpResponseStatus status(){
        return this.status;
    }

    public void replaceStatus(HttpResponseStatus status){
        this.status = status;
    }
}
